<?php
	list($sql,$all_page) = splitPage("`tbl_brand`","1 ORDER BY `brand_id` ASC", 30, $_GET['p']);
	$strPage = fetchPage($all_page,$_GET['p']);
	$query = mysql_query($sql);

	$tp->block('result');
	while($result = mysql_fetch_assoc($query)) {
		$brand_id	= $result['brand_id'];
		$title		= $result['title'];
		$brand_thumb= $result['thumb'] ? " <img src=\"/thumb/100/30/zc/contents/brand/{$result['thumb']}\" />" : '';
		$date		= formatDate($result['date'], 'd/m/Y');
		$n++;
		$tp->apply();
	}
	mysql_free_result($query);
?>